#ifndef CHP_LCD_HEAD_FILE
#define CHP_LCD_HEAD_FILE

#include "ustc_c626_api.h"
#include "comdef.h"

#define MAX_LCD_DEV_NUM	5
#define CHP_LCD_TMOUT_CNT	10000

extern CHP_U8 g_ustc_lcd_dev_num;
extern CHP_LCD_DEVICE_T* ustc_lcd_dev_tab[MAX_LCD_DEV_NUM];

CHP_U8 ustc_lcd_dev_register(CHP_LCD_DEVICE_T* p_dev);
CHP_RTN_T ustc_lcd_dev_init(CHP_U8 id);
CHP_RTN_T ustc_lcd_set_point(CHP_U8 id, CHP_U16 x_start , CHP_U16 y_start);
CHP_RTN_T ustc_lcd_get_scanmode(CHP_U8 id, CHP_U16 * p_scanmode);
CHP_RTN_T ustc_lcd_set_scanmode(CHP_U8 id, CHP_U16 scan_mode);
CHP_RTN_T ustc_lcd_get_width(CHP_U8 id, CHP_U16 * p_width);
CHP_RTN_T ustc_lcd_get_height(CHP_U8 id, CHP_U16 * p_height);

#endif

